package com.cn.jiyun.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cn.jiyun.entity.pojo.Entertainment;
import com.cn.jiyun.mapper.EntertainmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public class EntertainmentServiceImpl extends ServiceImpl<EntertainmentMapper, Entertainment> implements EntertainmentService {

    @Autowired
    private EntertainmentMapper entertainmentMapper;
    @Override
    public List<Entertainment> findPage() {
        List<Entertainment> entertainments = entertainmentMapper.findPage();
        return entertainments;
    }

    @Override
    public Entertainment findById(Integer entertainmentId) {
        return entertainmentMapper.findById(entertainmentId);
    }

}
